package com.geek.crowdhub.repository.business;


import com.geek.crowdhub.model.business.CampaignDetail;
import com.geek.crowdhub.model.business.PayOrder;
import com.geek.crowdhub.model.common.User;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.repository.CrudRepository;
import org.springframework.data.repository.PagingAndSortingRepository;

import java.util.List;


public interface PayOrderRepository extends PagingAndSortingRepository<PayOrder, Long>, CrudRepository<PayOrder, Long>, JpaSpecificationExecutor<PayOrder> {
    List<PayOrder> findPayOrderByOwner(User owner);
    List<PayOrder> findPayOrderByCampaignDetail(CampaignDetail campaignDetail);
}
